package com.example.shiro.shiro.log;


import com.example.shiro.shiro.enums.OperationType;

import java.lang.annotation.*;

/**
 * 日志注解
 * Created by lx on 2017/9/29.
 */
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface SystemLog {

    /*模块名称*/
    public String modelName() default "";

    /*操作类型*/
    public OperationType operationType();

    /*操作名称*/
    public String operationName() default "";

    /*描述*/
    public String desc() default "";

    /*是否记录日志*/
    public boolean logFlag() default false;

}
